<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>数据可视化</title>
  <link rel="stylesheet" href="css/index.css" />
  <link rel="stylesheet" href="css/content.css">
  <link rel="stylesheet" href="css/main.css">

</head>

<body>
  <!-- 头部的盒子 -->
  <header>
    <button>切换背景</button>
    <h1>国内GDP可视化数据中心</h1>
    <div class="showTime"></div>
    <script>
      var t = null;
      t = setTimeout(time, 1000); //開始运行
      function time() {
        clearTimeout(t); //清除定时器
        dt = new Date();
        var y = dt.getFullYear();
        var mt = dt.getMonth() + 1;
        var day = dt.getDate();
        var h = dt.getHours(); //获取时
        var m = dt.getMinutes(); //获取分
        var s = dt.getSeconds(); //获取秒
        document.querySelector(".showTime").innerHTML =
          "当前时间：" +
          y +
          "年" +
          ` ` +
          mt +
          "月" +
          day +
          "日" +
          ` ` +
          h +
          "时" +
          m +
          "分" +
          s +
          "秒";
        t = setTimeout(time, 1000); //设定定时器，循环运行
      }
    </script>
  </header>

  <!-- 页面主体部分 -->
  <section class="mainbox">
    <div class="column">
      <div class="panel bar world">
        <h2>
          <ul>
            <li class="world_current">各国家(地区)排行</li>
            <li>近年GDP</li>
            <li>GDP增速</li>
            <li>最高产业占比</li>
          </ul>
        </h2>
        <div class="chart chart1 world_chart_current"></div>
        <div class="chart chart2 world_chart_current"></div>
        <div class="chart chart3 world_chart_current"></div>
        <div class="chart chart4 world_chart_current"></div>
        <div class="panel-footer">
        </div>
      </div>
      <div class="panel line">
        <h2>
          2023年居民消费价格月度涨跌幅度
        </h2>
        <div class="chart"></div>
        <div class="panel-footer"></div>
      </div>
      <div class="panel pie">
        <h2>2023年全国居民人均消费支出及其构成</h2>
        <div class="chart">图表</div>
        <div class="panel-footer"></div>
      </div>
    </div>
    <div class="column">
      <!-- no模块制作 -->
      <div class="no no_industry">
        <div class="no-hd ">
          <ul>
            <li class="dashboard dashboard1"></li>
            <li class="dashboard dashboard2"></li>
            <li class="dashboard dashboard3"></li>
          </ul>
        </div>
      </div>
      <div class="no no_gdp">
        <div class="no-hd">
          <ul>
            <li>126.06万亿元</li>
            <li>5.20%</li>
            <li>8.94万元/人</li>
            <li>5.40%</li>
          </ul>
        </div>
        <div class="no-bd">
          <ul>
            <li>中国GDP</li>
            <li>GDP增速</li>
            <li>人均GDP</li>
            <li>人均GDP增速</li>
          </ul>
        </div>
      </div>

      <!-- 地图模块 -->
      <div class="map">
        <div class="map_con">
          <div class="map_con_cir">
            <h1>上海</h1>
            <p>4.72万亿元</p>
          </div>
          <div class="map_con_cir">
            <h1>北京</h1>
            <p>4.38万亿元</p>
          </div>
          <div class="map_con_cir">
            <h1>深圳</h1>
            <p>3.46万亿元</p>
          </div>
          <div class="map_con_cir">
            <h1>广州</h1>
            <p>3.04万亿元</p>
          </div>
        </div>
        <div class="map_chart">
          <h2> 2029-2023年本专科，中等职业教育及普通高中招生人数</h2>
          <div class="chart">图表</div>
        </div>
      </div>
      <!-- 建筑图模块 -->
      <div class="build"></div>
    </div>
    <div class="column">
      <div class="panel bar2">
        <h2>
          中国各省GDP排名
        </h2>
        <div class="chart">图表</div>
        <div class="panel-footer"></div>
      </div>
      <div class="panel bar money">
        <h2>
          <ul>
            <li class="money_current">工业</li>
            <li>建筑业</li>
            <li>服务业</li>
            <li>快递业务量</li>
          </ul>
        </h2>
        <div class="chart chart1 money_chart_current"></div>
        <div class="chart chart2 money_chart_current"></div>
        <div class="chart chart3 money_chart_current"></div>
        <div class="chart chart4 money_chart_current"></div>

      </div>
      <div class="panel pie2">
        <h2>2023年我国的专利数及增长率</h2>
      <div class="content">
        <div class="main">
            <div class="main-nav">
                <ul id="main-nav-ul">
                    <li class="current">指标</li>
                    <li>专利数(万件)</li>
                    <li>比上年增长(%)</li>
                    <div class="main-nav-box"></div>
                </ul>
                <div class="main-con">
                    <div class="main-content" style="display: block;">
                        <table>
                            <thead>
                            <tbody>
                            </tbody>
                            </thead>
                            <script>
                                var datas = [
                                    {
                                        name: '发明专利授权',
                                        num: '92.1',
                                        compare: '15.3'
                                    },
                                    {
                                        name: '其中:境内发明专利授权',
                                        num: '81.3',
                                        compare: '18.0'
                                    },
                                    {
                                        name: '实用新型专利授权',
                                        num: '209.0',
                                        compare: '-25.5'
                                    },
                                    {
                                        name: '外观设计专利授权',
                                        num: '63.8',
                                        compare: '-11.5'
                                    },
                                    {
                                        name: '年末有效文明专利',
                                        num: '499.1',
                                        compare: '18.5'
                                    },
                                    {
                                        name: '其中：境内有效文明专利',
                                        num: '401.5',
                                        compare: '22.4'
                                    },
                                    {
                                        name: '年末有效实用新型专利',
                                        num: '1212.9',
                                        compare: '11.9'
                                    },
                                    {
                                        name: '年末有效外观设计专利',
                                        num: '323.4',
                                        compare: '14.2'
                                    },
                                ]
                                var tbody = document.querySelector('tbody')
                                for (let i = 0; i < datas.length; i++) {
                                    // 创建行
                                    let tr = document.createElement('tr')
                                    tbody.appendChild(tr)
                                    for (let k in datas[i]) {
                                        let td = document.createElement('td')
                                        td.innerHTML = datas[i][k]
                                        tr.appendChild(td)
                                    }

                                }
                            </script>
                        </table>
                    </div>

                </div>
            </div>
        </div>
    </div>
      </div>
    </div>
  </section>
  <script src="js/flexible.js"></script>
  <script src="js/echarts.min.js"></script>
  <!-- 先引入jquery -->
  <script src="js/jquery.js"></script>
  <script src="js/index.js"></script>
  <script src="js/operate.js"></script>
</body>

</html>